<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			//1.算数运算符
			//+ - * / % ++ --
			
			//2.字符串运算符
			//+ +=
			
			//3.关系运算符
			//> >= < <= == === != !==
			//==判断内容 不判断类型
			//===判断内容 还要判断类型
			console.log(1==1);//true
			console.log(1===1);//true
			console.log(1=="1");//true
			console.log(1==="1");//false
			
			console.log(100!=100);//false
			console.log(100!==100);//false
			console.log(100!="100");//false
			console.log(100!=="100");//true
			
			//4.赋值运算符
			//= += -= *= /= %=
			
			//5.逻辑运算符
			//&& || !
			
			//6.条件运算符
			//条件表达式? 结果1:结果2;
			
			//7.逗号运算符
			var a,b,c,d;
			d=(a=1,b=2,c=3);
			console.log("a="+a);//1
			console.log("b="+b);//2
			console.log("c="+c);//3
			console.log("d="+d);//3
			
			//8.typeof运算符
			console.log(typeof a);//number
			console.log(typeof "123");//string
			console.log(typeof (1==1));//boolean
			console.log(typeof (1/0));//number
			console.log(typeof (0/0));//number
			var e;
			console.log(typeof e);//undefined
			
			//9.new用来创建对象
			
		</script>
	</body>
</html>
